% Figure O5
%%
ukdlogp = diff(log(ONSCDEF));
torndlogp = diff(torn);

%load data/DataforMatlab\inflation.mat
 axoptions={'scaled ticks = false',...
           'y tick label style={/pgf/number format/.cd, fixed, fixed zerofill,precision=2, set thousands separator={}}',...
           'x tick label style={/pgf/number format/.cd, set thousands separator={}}',...
           'legend style={font=\normalsize}'}; %\scriptsize
figure('name','Figure O5','NumberTitle','off')
plot(1975:2017,ukdlogp,'LineWidth',2);hold on 
plot(1975:2017,torndlogp,'LineWidth',2);hold on 
legend('Inflation from UK Official Consumption Deflator','Inflation from with Aggregated Microdata','Location','northeast','interpreter','latex')
xlim([1975 2017])
%matlab2tikz('fig/Inflation.tex');